#include <stdio.h>
#include <stdlib.h>

#define MAX(a, b) ({ typeof(a) A=a; typeof(b) B=b; (((A) > (B)) ? (A) : (B));})

int main(int argc, char *argv[])
{
    int a = 5;
    int b = 10;

    printf("a = %d b = %d\n", a, b);
    printf("max = %d\n", MAX(a++, b++));
    printf("a = %d b = %d\n", a, b);

    return 0;
}
